package io.gitee.thinkbungee.crud.mongo.entity;

import io.gitee.thinkbungee.crud.BaseEntity;
import io.gitee.thinkbungee.crud.mongo.annotation.CreateTime;
import io.gitee.thinkbungee.crud.mongo.annotation.UpdateTime;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 * mongo实体
 *
 * @author chenyichang
 * @date 2022/2/17
 */
@Data
public class SatelliteMongoEntity extends BaseEntity {

    @Id
    private String id;
    /**
     * 创建时间
     */
    @CreateTime
    private Date createTime;
    /**
     * 更新时间
     */
    @UpdateTime
    private Date updateTime;
}
